<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
			String actionURL = path + "/cms/consumables/doQuery.do";
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<base href="<%=basePath%>">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<title>智慧酒店服务应用平台</title>
		<link href="css/css-main.css" rel="stylesheet" type="text/css" />
		<link rel=stylesheet type=text/css href="css/msgbox/jquery.msgbox.css" />
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/msgbox/jquery.dragndrop.min.js"></script>
		<script type="text/javascript" src="js/msgbox/msgbox.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript">
	
</script>
	</head>
	<body>
		<div class="main-con">
			<!--//导航位置层-->
			<div class="main-bar">
				<span class="bar-position">当前位置：<a href="#">易耗品管理</a>
					&gt;&gt; 易耗品明细</span>
			</div>
			<div class="cont_right_cont">
				<div>
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="100" align="right" valign="middle">
								<input name="button" type="submit" class="btn-Yes" id="button"
									value="返回" onclick="history.go(-1);" />
							</td>
						</tr>
					</table>
				</div>
				<fieldset>
					<legend>
						<span style="color: red"><s:property
								value="consumablesInfo.consumablesName" />
						</span>出入库详情
					</legend>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="49%" valign="top">
							<fieldset>
								<legend>
									入库明细
								</legend>
								<div class="iodetail">
									<!-- 记录为空 -->
									<s:if test="consumablesReqRecords.size == 0">
									</s:if>
									<!-- 存在记录 -->
									
									<s:if test="consumablesReqRecords.size > 0">
										<!--显示List记录！-->
										<s:iterator value="consumablesReqRecords" status="c">
												<s:if test="consumablesReqRecords[#c.index].type == 0">
													<p>
														<s:property value="#c.index+1" />，入库时间:<s:date name="consumablesReqRecords[#c.index].consumingDate" format="yyyy-MM-dd"/>，<s:property value="consumablesReqRecords[#c.index].consumablesInfo.consumablesName" />，领用数量:<s:property value="consumablesReqRecords[#c.index].quantity" />，领用人：<s:property value="consumablesReqRecords[#c.index].consumingPeople" />，领用目的：<s:property value="consumablesReqRecords[#c.index].consumingPurpose" />
													</p>	
												</s:if>
										</s:iterator>
									</s:if>
								</div>
							</fieldset>
						</td>
						<td width="5"></td>
						<td width="50%" valign="top">
							<fieldset>
								<legend>
									出库明细
								</legend>
								<div class="iodetail">
									
									<!-- 记录为空 -->
									<s:if test="consumablesReqRecords.size == 0">
									</s:if>
									<!-- 存在记录 -->
									
									<s:if test="consumablesReqRecords.size > 0">
										<!--显示List记录！-->
										<s:iterator value="consumablesReqRecords" status="c">
											<s:if test="consumablesReqRecords[#c.index].type == 1">
												<p>
													<s:property value="#c.index+1" />，领用时间:<s:date name="consumablesReqRecords[#c.index].consumingDate" format="yyyy-MM-dd"/>，<s:property value="consumablesReqRecords[#c.index].consumablesInfo.consumablesName" />，领用数量:<s:property value="consumablesReqRecords[#c.index].quantity" />，领用人：<s:property value="consumablesReqRecords[#c.index].consumingPeople" />，领用目的：<s:property value="consumablesReqRecords[#c.index].consumingPurpose" />
												</p>
											</s:if>
										</s:iterator>
									</s:if>
								</div>
							</fieldset>
						</td>
					</tr>
				</table>
				</fieldset>
			</div>
		</div>
	</body>
</html>
